package com.usf.jprovider.schema.provider.dao.key;

import com.usf.jprovider.object.JObjectNode;
import com.usf.jprovider.object.builder.SQLBuilder;
import com.usf.jprovider.object.env.Environment;
import com.usf.jprovider.object.type.JType;

public final class DAOAutoIncrement extends AbstractDAOKeySource {

	public DAOAutoIncrement() {
		super();
	}
	
	@Override
	protected String createUnformated(Environment env, JObjectNode node) {
		return "";
	}
	@Override
	public boolean checkValue(Environment env, JObjectNode node,  JType<?> value) {
		return true;
	}
	@Override
	public void persist(Environment env, JObjectNode node, SQLBuilder builder)  {
		builder.addPrimary(node);
	}
}